using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;  //  for Vector2
using Microsoft.Xna.Framework.Graphics;   //   for Texture2D

namespace zombieArena
{
    class Grenade : Weapon
    {
        Texture2D boom;
        Vector2 midPoint1 = new Vector2(8,8);
        Vector2 midPoint2 = new Vector2(43, 55);

        public Grenade(Texture2D t, Texture2D b) : base(t)
        {
            ammo = 2;
            rateOfFire = 50f;
            bulletSpeed = 10f;
            name = "Rocket Launcher";
            boom = b;
        }

        public override void shoot(Vector2 position, Vector2 direction, Map map)
        {
            map.bulletList.Add(new Bullet(position, direction * bulletSpeed, texture, 2, 50f, texture, 200f, 400f, 60f, midPoint1, midPoint2));
            ammo--;
        }
        

    }
}
